//============================================================
//write by bxl at 2019-09-10 18:11:22
//============================================================

using BCCommon.CRMEnums;
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.CRM.CustomerFollowUpRecord
{
    /// <summary>
    /// 客户跟进记录数据模型
    /// </summary>
    [Table("crm_CustomerFollowUpRecord")]
    public class CustomerFollowUpRecordEntity
    {
        /// <summary>
        /// 客户跟进记录Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long CustomerFollowUpRecordId { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int? CompanyId { get; set; }
        /// <summary>
        /// 客户信息Id
        /// </summary>
        public long CustomerInfoId { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 跟进备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 跟进人员Id
        /// </summary>
        public long AdminId { get; set; }
        /// <summary>
        /// 跟进人员姓名
        /// </summary>
        public string AdminFullName { get; set; }
        /// <summary>
        /// 跟进状态
        /// </summary>
        public string FollowUpStatus { get; set; }
        /// <summary>
        /// 跟进任务下发人Id
        /// </summary>
        public long CreateAdminId { get; set; }
        /// <summary>
        /// 跟进任务下发人姓名
        /// </summary>
        public string CreateAdminFullName { get; set; }
        /// <summary>
        /// 指定的日期
        /// </summary>
        public DateTime ScheduleTime { get; set; }
        /// <summary>
        /// 指定的超时日期
        /// </summary>
        public DateTime TimeoutDate { get; set; }
        /// <summary>
        /// 已超时
        /// </summary>
        public bool IsTimeout { get; set; }
        /// <summary>
        /// 已放弃
        /// </summary>
        public bool IsGivenUp { get; set; }
        /// <summary>
        /// 欲放弃
        /// </summary>
        public bool IsShake { get; set; }
        /// <summary>
        /// 客户评级(跟进任务执行完成后后台测评时输入)
        /// </summary>
        public string CustomerGrade { get; set; }


    }
}
